<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        div {
            width: 100px;
            height: 100px;
            background-color: skyblue;

            position: absolute;
            left: 0;
            top: 0;
        }

        p {
            width: 100px;
            height: 100px;
            background-color: orange;

            position: absolute;
            left: 0;
            top: 130px;
        }
    </style>
</head>

<body>

    <div></div>

    <p></p>
    <script src="./utils.js"></script>
    <script>
        var divele = document.querySelector('div');
        var pele = document.querySelector('p');

        divele.onclick = function(){
            move(this,{left:500,opacity:0.8,width:500});
        }


        pele.onclick = function(){
            move(this,{left:500,opacity:0.8,width:500});
        }
    </script>
</body>

</html>